<?php
/*
 * Autocarga
 */
function __autoload($class){
    require_once 'php/'.$class.'.php';
}

$reemplazo = Array("{!titulo}"=>"Login");
$opts = Array("header"=>"tpl/header.html","body"=>"tpl/index.body.html","footer"=>"tpl/footer.html","reemplazar"=>$reemplazo);
$html = new html($opts);
//Agrego js que controla la pagina
$html->agregarScript('<script type="text/javascript" src="js/index.js"></script>');
$html->imprimir();
?>